package com.zzxy.mybatis12.dao;

import com.zzxy.mybatis12.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    private SqlSession sqlSession;

    public UserDaoImpl(SqlSession sqlSession) {
        this.sqlSession = sqlSession;
    }

    public User findUserById(int id){
        User user = sqlSession.selectOne("findUserById",id);
        return user;
    }
}
